-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix](posexplode) fix return type check failure #59734
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
run buildall |
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
TPC-H: Total hot run time: 32188 ms |
|
run beut |
TPC-DS: Total hot run time: 173537 ms |
FE UT Coverage ReportIncrement line coverage |
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
| fieldTypes[1] = | ||
| check_and_get_data_type<DataTypeArray>(arguments[0].get())->get_nested_type(); | ||
| for (int i = 0; i < arguments.size(); i++) { | ||
| DCHECK(arguments[0]->get_primitive_type() == TYPE_ARRAY) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move it to out of for loop,
Or maybe here should check arguments[i]?
And better use DCHECK_EQ instead of DCHECK
| if (nestedType->is_nullable()) { | ||
| fieldTypes[i + 1] = nestedType; | ||
| } else { | ||
| fieldTypes[i + 1] = make_nullable(nestedType); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fieldTypes[i + 1] = make_nullable(nestedType); is sufficient.
|
run buildall |
TPC-H: Total hot run time: 32124 ms |
FE UT Coverage ReportIncrement line coverage |
TPC-DS: Total hot run time: 172686 ms |
ClickBench: Total hot run time: 26.68 s |
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
mrhhsg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
|
skip check_coverage |
What problem does this PR solve?
Fix error of posexplode
function return type check failedRelated PR: #xxx
Problem Summary:
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)